import http from '/src/utils/Http/BootHttp'
import qs from 'qs'


/**
 * https://blog.csdn.net/chf1142152101/article/details/107099403
 * 独立封装
 * 获取首页列表
 */
function getArticleList() {
    return http("get", 'getArticle');
}

function addArticle(data) {
    return http('post', 'article', qs.stringify(data))
}


export {
    addArticle,
    getArticleList
}

